import { get_time_normal_to_format } from '../../../../../../../../../../global/Func/get_cur_format_time';
import { path_file_user_prefix } from '../../../../../../../DataDefine/file_path';
import { spacename_uni_float } from '../DataDefine/sourceData';

export function get_cur_uni_float_file_path(
  identity: string,
  uni_float_id: string
) {
  return `${path_file_user_prefix}/${identity}/${spacename_uni_float}/${uni_float_id}/${spacename_uni_float}_${uni_float_id}.json`;
}

export function get_cur_uni_float_file_path_by_time(
  req_time: string,
  identity: string,
  uni_float_id: string
) {
  let file_time = get_time_normal_to_format(req_time);
  return `${path_file_user_prefix}/${identity}/${spacename_uni_float}/${uni_float_id}/${spacename_uni_float}_${uni_float_id}_${file_time}.json`;
}
